export interface MenuVo {
    id: number;
    code: string;
    name: string;
    icon: string;
    type: MenuTypeEnum;
    value: string;
    pid: number;
    status: number;
}

export enum MenuTypeEnum {
    table = "table",
    tree = "tree",
    fill = "fill",
    router = "router",
    button = "button",
    api = "api",
    link = "link",
    newWindow = "newWindow",
    selfWindow = "selfWindow",
    bi = "bi",
    tpl = "tpl",
}

export enum MenuStatusEnum {
    OPEN = 1, HIDE = 2, DISABLE = 3
}

//定义程序打开菜单时url传参的key。具体的参数内容在跳入的页面中通过此key从会话缓存中读取
export const MenuJumpParam = {
    paramName: '_key',
    paramEntityAndPrimaryKey: '_targetPK',
    dataExtendParamKey: '_EruptDataExtendParamMap',
    menuCodeKey: '_mk',
    menuLocalCacheKey: '_menu_session_cache_key_'
};
